Global Index
HTML5 JS API Index > Indexed DB Tutorials & Specs

IDBKeyRange

Properties
any
lower
This value is the lower-bound of the key range.
boolean
lowerOpen
Returns false if the lower-bound value is included in the key range. Returns true if the lower-bound value is excluded from the key range.
any
upper
This value is the upper-bound of the key range.
boolean
upperOpen
Returns false if the upper-bound value is included in the key range. Returns true if the upper-bound value is excluded from the key range.
Operations
static IDBKeyRange
bound(any lower, any upper, optional boolean lowerOpen, optional boolean upperOpen)
Creates and returns a new key range with lower set to lower, lowerOpen set to lowerOpen, upper set to upper and upperOpen set to upperOpen. If either the lower parameter or upper parameter is not valid key, or the lower key is greater than the upper key, or the lower key and upper key match and either of the bounds are open, the implementation MUST throw a DOMException of type DataError.
static IDBKeyRange
lowerBound(any lower, optional boolean open)
Creates and returns a new key range with lower set to lower, lowerOpen set to open, upper set to undefined and and upperOpen set to true. If the value parameter is not a valid key, the implementation MUST throw a DOMException of type DataError.
static IDBKeyRange
only(any value)
Creates and returns a new key range with both lower and upper set to value and both lowerOpen and upperOpen set to false. If the value parameter is not a valid key, the implementation MUST throw a DOMException of type DataError.
static IDBKeyRange
upperBound(any upper, optional boolean open)
Creates and returns a new key range with lower set to undefined, lowerOpen set to true, upper set to upper and and upperOpen set to open. If the value parameter is not a valid key, the implementation MUST throw a DOMException of type DataError.